package io.polly;

import com.dtp.core.DtpRegistry;
import com.dtp.core.thread.DtpExecutor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
 * @author ldz
 * @version V1.0
 * @title: WebApplication
 * @description: 应用入口
 * @date: 2022/3/16 14:36
 */

@SpringBootApplication
public class WebApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);

        DtpExecutor dtpExecutor = DtpRegistry.getExecutor("dynamic-tp-test-1");
        dtpExecutor.execute(() -> System.out.println("test"));
    }

}
